#!/bin/bash

\mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

yum install -y qemu-kvm
yum install -y virt-manager python-virtinst qemu-kvm-tools libvirt libvirt-python libvirt-devel

/etc/init.d/libvirtd start
chkconfig libvirtd on


